package com.rmfyzxfw.caseprocess.boot.interceptor;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * 输出请求路径
 * @author Gyy
 * @date 2022-08-26
 */
@Component
@Slf4j
public class AuthInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler){
        String requestPath = request.getRequestURI();
        log.info("requestPath: {}", requestPath);
        return true;
    }

}
